package com.mall.bargain.mapper;

import com.mall.entity.bargain.BgBargainItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: W
 * @date: 2021/07/22/14:39
 * Other:
 */
@Mapper
public interface BargainItemMapper {
    BgBargainItem findOne(Long specItemId);

    void updateLimitSurplus(
            @Param("specItemId") Long specItemId,
            @Param("limitSurplus") int limitSurplus
    );

    void add(BgBargainItem bargainItem);
}
